{% extends 'base.html' %}
{% block title %}
{{ mv.name }}
{% endblock %}
{% block header %}
<!-- <a href="/videos/{{ mv.kindname.id }}" role="button" class="">返回上一页</a> -->
<a href="javascript:;" role="button" onclick="back()">返回上一页</a>
{% if index == 1 %}
<a href="javascript:;" role="button" class="btn btn-secondary btn-sm disabled ml-5">上一集</a>
{% else %}
<a href="/up/{{ mv.link }}/{{ index }}" role="button" class="btn btn-primary btn-sm ml-5 ">上一集</a>
{% endif %}
{% ifequal index mv.count_video %}
<a href="javascript:;" role="button" class="btn btn-secondary btn-sm disabled ml-3">下一集</a>
{% else %}
<a href="/down/{{ mv.link }}/{{ index }} " role="button" class="btn btn-primary btn-sm ml-3">下一集</a>
{% endifequal %}
<span class="float-right text-warning font-weight-bold">第{{ index }}集</span>
{% endblock %}
{% block content %}
<div id="mvcode" align="center">
    <iframe src="http://player.bilibili.com/player.html?{{ mv.link }}&page={{ index }}" height="600" width="1000"
        scrolling="no" border="0" frameborder="no" frameborder="0" allowfullscreen="true"></iframe>
</div>
{% endblock %}